#include "MyString.h"
#include <iostream>
using namespace std;

void display(MyString s)
{
	cout << "s: " << s.data() << endl;
}

int main(int argc, char **argv)
{
	//构造函数
	MyString s1("hello");			
	display(s1);
	//拷贝构造函数
	MyString s2(s1);				
	display(s2);
	//+
	MyString s3 = s1 +s2;
	display(s3);
	//+=
	s3+=s1;
	display(s3);
	//=
	s2=s3;
	display(s2);

	return 0;
}
